﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserMod.aspx.cs" Inherits="GuoTao.Web.UserMod" %>

<%@ Register Src="Controls/bot.ascx" TagName="bot" TagPrefix="uc4" %>

<%@ Register Src="Controls/Top.ascx" TagName="Top" TagPrefix="uc1" %>
<%@ Register Src="Controls/login.ascx" TagName="login" TagPrefix="uc2" %>
<%@ Register Src="Controls/LeftBigClass.ascx" TagName="LeftBigClass" TagPrefix="uc3" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

    protected void Login2_Load(object sender, EventArgs e)
    {

    }
</script>

<LINK href="inc/StyleSheet.css"   type="text/css"   rel="stylesheet">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
<script>
function a()
{

 if(document.getElementById("TxtUserName").value=="")
 {
 alert("姓名不能为空！");
 document.getElementById("TxtUserName").focus();
 return false;
 }
  if(document.getElementById("TxtUserPwd").value=="")
 {
 alert("密码不能为空！");
 document.getElementById("TxtUserPwd").focus();
 return false;
 }
  if(document.getElementById("TxtUserPwd").value!=document.getElementById("TxtUserPwd2").value)
 {
 alert("重复密码不正确！");
 document.getElementById("TxtUserPwd2").focus();
 return false;
 }
 
 if(checknumber(document.getElementById("TxtUserphone").value)) 
{ 
alert("只允许输入数字！"); 
document.getElementById("TxtUserphone").focus();
return false; 
}

if(document.getElementById("TxtUserEmail").value!="")
{
var checkmail = /^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/; //email 
var email =document.getElementById("TxtUserEmail"); 
    if (!(checkmail.test(email.value))){ 
    alert("Email地址格式不正确！"); 
    email.focus(); 
    return false; 
    } 
}

}

function checknumber(String) 
{ 
var Letters = "1234567890"; 
var i; 
var c; 
for( i = 0; i < String.length; i ++ ) 
{ 
c = String.charAt( i ); 
if (Letters.indexOf( c ) ==-1) 
{ 
return true; 
} 
} 
return false; 
} 

</script>
<form id="form1" runat="server">
    <div>
    
    </div>
    <div>
        <uc1:Top ID="Top2" runat="server" />
        <table width="998" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td valign="bottom"　background="imgV2/left_bg1.png" ><img src="imgV2/left_bg1.png" width="37" height="870"/></td>
    <td width="9" align="right" valign="top" background="imgV2/left_bg2.png"><img alt="" src="imgV2/left_yy.png" width="9" height="510"/></td>
    <td width="211" valign="top" background="imgV2/left_bg.gif">
        &nbsp;<uc2:login ID="Login2" runat="server" OnLoad="Login2_Load" />
        <uc3:LeftBigClass ID="LeftBigClass2" runat="server" />
</td>
    <td width="741" align="center" valign="top" background="Images_v1/rith_bg.gif" bgcolor="#F8FFE8">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="21" style="height: 21px"><img src="Images_v1/yx2_1.gif" width="35" height="21"/></td>
          <td background="Images_v1/yx2_2.gif" style="height: 21px">&nbsp;</td>
          <td width="21" align="right" style="height: 21px"><img src="Images_v1/yx2.png" width="247" height="21"/></td>
        </tr>
      </table>
      <table border="0" align="center" cellpadding="0" cellspacing="0" style="width: 95%">
        <tr>
          <td style="height: 38px; width: 26%;">
              产品 &gt;&gt; <a href="Product.aspx">修改个人资料</a></td>
          <td width="72%" valign="middle" style="height: 38px">
          <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#00AD97" style="height: 1px">
            <tr>
              <td style="height: 1px"></td>
            </tr>
          </table></td>
          <td width="5%" style="height: 38px"><a href="Product.aspx"></a></td>
        </tr>
        <tr>
        <td colspan=3 style="height: 160px" valign=top>
            <table style="width: 340px" cellspacing="1" width="100%" bgcolor="#D3D9E2">
                <tr>
                    <td style="width: 77px; height: 21px" bgcolor="#F3F5F4">
                        用户id：</td>
                    <td style="width: 230px; height: 21px" align="left"  bgcolor="#FFFFFF">
                        <asp:Label ID="LabUseId" runat="server" Text="LabNameId" ></asp:Label></td>
                </tr>
                <tr>
                    <td style="width: 77px"  bgcolor="#F3F5F4">
                        帐号：</td>
                    <td style="width: 230px" align="left" bgcolor="#FFFFFF">
                        <asp:Label ID="LabUserAccount" runat="server" Text="UserAccount"></asp:Label>
                        <asp:Label ID="LabUserFlag" runat="server" Text="Label" Visible=false></asp:Label></td>
                </tr>
                <tr>
                    <td style="width: 77px"  bgcolor="#F3F5F4">
                        姓名：</td>
                    <td style="width: 230px" align="left" bgcolor="#FFFFFF">
                        <asp:TextBox ID="TxtUserName" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 77px"  bgcolor="#F3F5F4">
                        密码：</td>
                    <td style="width: 230px" align="left" bgcolor="#FFFFFF">
                        <asp:TextBox ID="TxtUserPwd" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:Label ID="LabUserPwd" runat="server" Text="Label" Visible="False"></asp:Label></td>
                </tr>
                <tr>
                    <td style="width: 77px"  bgcolor="#F3F5F4">
                        重复密码：</td>
                    <td style="width: 230px" align="left" bgcolor="#FFFFFF">
                        <asp:TextBox ID="TxtUserPwd2" runat="server" TextMode="Password"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 77px"  bgcolor="#F3F5F4">
                        住址：</td>
                    <td style="width: 230px" align="left" bgcolor="#FFFFFF">
                        <asp:TextBox ID="TxtUserAdd" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 77px"  bgcolor="#F3F5F4">
                        电话：</td>
                    <td style="width: 230px" align="left" bgcolor="#FFFFFF">
                        <asp:TextBox ID="TxtUserphone" runat="server"></asp:TextBox></td>
                </tr>
                    <tr>
                    <td style="width: 77px"  bgcolor="#F3F5F4">
                        Email：</td>
                    <td style="width: 230px" align="left" bgcolor="#FFFFFF">
                        <asp:TextBox ID="TxtUserEmail" runat="server"></asp:TextBox>
                        </td>
                </tr>
                <tr>
                    <td style="width: 77px" bgcolor="#F3F5F4">&nbsp;
                        </td>
                    <td style="width: 230px" align="left" bgcolor="#FFFFFF">
                    <!--<asp:Button ID="Button1" runat="server" OnClientClick="javascript:return a();" OnClick="Btn1_Click" Text="提交" />-->
                        &nbsp;<asp:Button ID="Btn1" runat="server" OnClientClick="javascript:return a();" OnClick="Btn1_Click" Text="提交" />&nbsp;
                        <input name="Submit" type="reset" value="重置" /></td>
                </tr>
            </table>
            &nbsp;</td>
        </tr>
        <tr>
        <td colspan=3>
        <div align=right>
            </div>
        </td>
        </tr>
      </table>
      <!--include file="NewsProducts.asp" -->
<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="1" bgcolor="#4DB5C9" style="height: 12px"></td>
    <td width="724"  valign="top" background="imgV2/index_us2.gif" style="height: 12px">
    </td>
    <td width="1" bgcolor="#4DB5C9" style="height: 12px"></td>
  </tr>
  <tr>
    <td colspan="3" bgcolor="#4DB5C9" style="height: 1px"></td>
    </tr>
</table>
    </td>
  </tr>
</table></div><uc4:bot ID="Bot1" runat="server" />
    </form>
    
</body>
</html>
